/*
 * types.h
 *
 *  Created on: 2013-3-14
 *      Author: root
 */

#ifndef TYPES_H_
#define TYPES_H_
#define  uint8 unsigned char
#define  uint16 unsigned short
#define  uint32 unsigned int

#define  int8  char
#define  int16  short
#define  int32  int

typedef struct
{

uint32 DevID;
uint16 Cmd;
}Head_t;


typedef struct
{
int8 Passwd[12];
} Passwd_t;

typedef struct
{
uint8 Status;
} u8Value_t;

typedef struct
{
uint16 Status;
} u16Value_t;

typedef struct
{
uint32 Status;
} u32Value_t;
/*

typedef struct
{
	Head_t Head;
	union
	{
		Passwd_t Passwd;
		u8Value_t u8Value;
		u16Value_t u16Value;
		u32Value_t u32Value;
	};
}IncomData_t;

*/

typedef struct
{
	Head_t Head;
	Passwd_t Passwd;
}HPasswd_t;

typedef struct
{
	Head_t Head;
	u8Value_t u8Value;

}Hu8Value_t;

typedef struct
{
	Head_t Head;
	u16Value_t u16Value;

}Hu16Value_t;

typedef struct
{
	Head_t Head;
	u32Value_t u32Value;

}Hu32Value_t;
#endif /* TYPES_H_ */
